package com.zjw.spring.aop;

import org.springframework.stereotype.Component;

/**
 * the original implements for ICalculator
 * pure and clean!!
 * @author zjw
 *
 */
@Component
public class CalculatorImpl implements ICalculator {

	@Override
	public int add(int i, int j) {
		return i+j;
	}

	@Override
	public int minus(int i, int j) {
		return i-j;
	}

	@Override
	public int multiply(int i, int j) {
		return i*j;
	}

	@Override
	public int divide(int i, int j) {
		return i/j;
	}

}
